/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function loadXMLDoc() //fungsi untuk load xmlhttp object
{
    var xmlHttp=null;
    try{
        xmlHttp = new XMLHttpRequest();
    }
    catch(e){
        //IE
        try{
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch(e){
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return xmlHttp;
}


function showhide_province(){
    if(document.getElementById('countries').value != 'Indonesia'){
//        document.getElementById('province').innerHTML='';
        document.getElementById('province').style.display = "none";
    }
    else if (document.getElementById('countries').value == 'Indonesia'){
         document.getElementById('province').style.display = "block";
    }
}

function showLoginForm(){
    document.getElementById("login_bg").style.display = "block";
}

function hideLoginForm(){
    document.getElementById("login_bg").style.display = "none";
}


var aboutshow = 0;

function showAboutSubMenu(){
    if (aboutshow == 0){
        document.getElementById("about_submenu").style.display = "block";
        aboutshow = 1;
    }
    else{
        document.getElementById("about_submenu").style.display = "none";
        aboutshow = 0;
    }
}

function showNewName1(){
    document.getElementById("membername1").style.display = "none";
    document.getElementById("new_membername_1").style.display = "block";
}
function showNewName2(){
    document.getElementById("membername2").style.display = "none";
    document.getElementById("new_membername_2").style.display = "block";
}
function showNewName3(){
    document.getElementById("membername3").style.display = "none";
    document.getElementById("new_membername_3").style.display = "block";
}
function showNewName4(){
    document.getElementById("membername4").style.display = "none";
    document.getElementById("new_membername_4").style.display = "block";
}